# def stream_data():
#     # 流式输出
#     return (i for i in range(10))  # 返回一个生成器对象
#
#
# # 使用返回的生成器对象
# for value in stream_data():
#     print(value)  # 处理或使用value
# import re
#
# action_re = re.compile('^Action: (\w+): (.*)$')
# match = action_re.match("Action: fetch_real_time_info: mass of earth")
# if match:
#     print(match.group(1))  # 'fetch_real_time_info'
#     print(match.group(2))  # 'mass of earth'